<template>
  <el-dialog
    title="提示"
    append-to-body
    :visible.sync="dialogVisible"
    width="20%"
    :close-on-click-modal="false"
    :close-on-press-escape="false"
    :show-close="false"
    >
    <span>您还没有选择商户，请先选择商户再进行操作！！！</span>
    <span slot="footer" class="dialog-footer">
      <el-button type="primary" @click="comfirm">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
  export default {
    props: {
      dialogVisible: {
        type: Boolean,
        default: false,
      },
    },
    data() {
      return {
        // dialogVisible: false
      };
    },
    methods: {
      comfirm(){ 
        this.dialogVisible = false
        this.$router.push({path: '/selectIdentity'});//跳转选择登录账户
      }
    },
  };

</script>

<style lang="scss" scoped>
  /deep/ .el-dialog__body {
    padding: 0 20px;
  }
</style>
